﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Class1
    {
        //        定义一个员工类，存放用户的工号、姓名和部门信息；
        //定义两个构造函数，一个是无参；
        //一个有参构造函数，对类的属性进行初始化。
        public int Usenumber { get; set; }
        public string Usename { get; set; }
        public string Department { get; set; }

        public void staff()
        {
            Console.WriteLine("用户的工号{0},    姓名{1} ,  部门{2}",this.Usenumber,this.Usename,this.Department);
        }

        public Class1()
            {

            }
        public Class1(int Usenumber, string Usename, string Department)
        {
            this.Usenumber =Usenumber;
            this.Usename = Usename;
            this.Department = Department;

        }
    }
}
